//
//  HD_LD_ClusterAlgorithm.h
//  HDWuDaDaoServiceCenter
//
//  Created by mac on 2017/7/12.
//  Copyright © 2017年 HDNiuKuiming. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HD_LD_ClusterQuadtree.h"
#import "HDAnnotation.h"
@interface HD_LD_ClusterAlgorithm : NSObject

///所有的BMKQuadItem
@property (nonatomic, readonly) NSMutableArray *quadItems;
@property (nonatomic, readonly) HD_LD_ClusterQuadtree *quadtree;

///添加item
- (void)addItem:(HDAnnotation*)clusterItem;


/**
 *  cluster算法核心
 * @param zoomLevel map的级别
 */
- (NSArray*)getClusters:(CGFloat) zoomLevel
               withRect:(CGRect)rect;
@end
